package com.moonfish.base.repository;

import com.moonfish.base.model.security.Role;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by mayu on 2017/7/10.
 * email:showmara@qq.com
 */
public interface RoleRepository extends JpaRepository<Role, Long> {
    Role findByName(String name);
    Role findById(String id);
}
